#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START mkimage
# depends: ash
# depends: hasher
# depends: libshell
# depends: time

unset NIL
rm -rf build/mkimage
cp -a mkimage build/
cd build/mkimage

make all install DESTDIR=`pwd`/inst

cd inst
find ${prefix#/}/bin ${prefix#/}/share/mkimage | cpio -pumd "$stage"
cd ../../..
rm -rf build/mkimage

# RECIPE END mkimage
